<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Logout extends Public_Controller
{
	public function __construct()
	{
		parent::__construct();
	}

	// blog/page/x also routes here
	public function index()
	{
		$array_items = array('logged_in' => false, 'account' => null);
		$this->session->unset_userdata($array_items);
		redirect('./');
	}
}
